﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace One.Consul.Controllers
{
    [Route("consul/v1/[controller]")]
    [ApiController]
    public class HealthController : ControllerBase
    {
        [HttpGet]
        public string Health()
        {
            return "One.Health 健康检查！";
        }

        [HttpGet("test")]
        [Authorize]
        public string AuthorizeTest()
        {
            return "One.Health AuthorizeTest！";
        }
    }
}
